package com.base.cn.platform.os.entity.qa.qareply;

import com.base.cn.platform.os.common.annotation.ImgAttr;
import com.base.cn.platform.os.common.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 问题评论Entity
 * @author LIZHIPENG
 * @since 2018/4/26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class QaReply extends BaseEntity {

    /**问题ID*/
    private BigDecimal questionId;
    /**评论用户ID*/
    private BigDecimal userId;
    /**被回复用户ID*/
    private BigDecimal toUserId;
    /**评论内容*/
    @ImgAttr
    private String replyContext;
    /**父级评论ID*/
    private BigDecimal parentId;

    //============= 扩展数据 ==============
    /**评论用户*/
    private Map<String, Object> userMap;
    /**被回复用户*/
    private Map<String, Object> toUserMap;
    /**子评论列表*/
    private List<QaReply> childList;
    //============= 查询条件 ==============
    /**父级评论ID串*/
    private String parentIds;
}
